package com.weitu.environmental.monitor.service.impl;

import com.weitu.environmental.monitor.entity.MonitorPointAndProject;
import com.weitu.environmental.monitor.mapper.MonitorPointAndProjectMapper;
import com.weitu.environmental.monitor.service.MonitorPointAndProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author zhangqingxi 2017-04-24
 */
@Service
public class MonitorPointAndProjectServiceImpl implements MonitorPointAndProjectService {

    private final MonitorPointAndProjectMapper monitorPointAndProjectMapper;

    @Autowired
    public MonitorPointAndProjectServiceImpl(MonitorPointAndProjectMapper monitorPointAndProjectMapper) {
        this.monitorPointAndProjectMapper = monitorPointAndProjectMapper;
    }

    @Override
    public List<MonitorPointAndProject> findByParam(Map paramMap) {
        return monitorPointAndProjectMapper.findByParam(paramMap);
    }

    @Override
    public Integer findByParamCount(Map paramMap) {
        return monitorPointAndProjectMapper.findByParamCount(paramMap);
    }

    @Override
    public List<MonitorPointAndProject> findByPointId(String pointId) {
        return monitorPointAndProjectMapper.findByPointId(pointId);
    }

    @Override
    public List<Map> findDropDownListByPointId(String pointId) {
        return monitorPointAndProjectMapper.findDropDownListByPointId((pointId));
    }


}
